﻿using ObjCRuntime;

namespace Editor_MacOSX;

public partial class ViewController : NSViewController, ConfigEditor.IView {
    protected ViewController (NativeHandle handle) : base (handle)
    {
        // This constructor is required if the view controller is loaded from a xib or a storyboard.
        // Do not put any initialization here, use ViewDidLoad instead.
    }

    public override void ViewDidLoad ()
    {
        base.ViewDidLoad ();

        // Do any additional setup after loading the view.
        ConfigEditor.EditorCore.Core.View = this;
    }

    public void RefreshView()
    {
        // todo
    }

    public override NSObject RepresentedObject {
        get => base.RepresentedObject;
        set {
            base.RepresentedObject = value;

            // Update the view, if already loaded.
        }
    }
}

